import Vue from 'vue'
import Router from 'vue-router'
import helloWorld from '../components/helloWorld'
import jsonTools from '../components/json-tools'
import mucangParameter from '../components/mucang-parameter'
import home from '../components/home'
import homeAd from '../components/home-ad.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      component: (resolve) => require(['../components/home.vue'], resolve)
    },
    {
      path: '/hello-world',
      name: 'helloWorld',
      component: helloWorld
    },
    {
      path: '/home',
      name: 'home',
      component: home
    },
    {
      path: '/json-tools',
      name: 'jsonTools',
      component: jsonTools
    },
    {
      path: '/mucang-parameter',
      name: 'mucangParameter',
      component: mucangParameter
    },
    {
      path: '/ad',
      name: 'homeAd',
      component: homeAd
    },
  ]
})
